﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lz.HttpDemo
{
    /// <summary>
    /// 接口结果
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class HttpMessageResult<T>
    {
        /// <summary>
        /// 结果代码，
        /// 0：处理成功，
        /// 1：处理失败，
        /// -1：验证失败，
        /// -20：发生异常
        /// </summary>
        public int Code { get; set; }

        /// <summary>
        /// 提示消息
        /// </summary>
        public string Msg { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public T Data { get; set; }
    }
}
